package models

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	Title     string `gorm:"type:varchar(30)"`
	Content   string `gorm:"type:varchar(30)"`
	Author    string `gorm:"type:varchar(30)"`
	LikeCount int    `gorm:"type:int"`
}
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(255)"`
}
type Like struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Ain int `gorm:"type:int"`
}
